package com.test.sdk.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.test.sdk.common.pojo.CP;
import com.test.sdk.dao.CPDAO;
import com.test.sdk.service.CPService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * @author 徒有琴
 */
@Service //dubbo的注解
public class CPServiceImpl implements CPService {
    @Autowired
    private CPDAO cpdao;

    @Override
    public List<CP> getAllCP() {
        return cpdao.getAllCP();
    }
}
